package com.ys.entity.sys;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TS_UserInfo", catalog="Id")
public class TsUserInfo extends BaseEntity<TsUserInfo> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Guid", nameJava="guid", typeDataBase="varchar")
	private String guid;
	@YsField(nameDataBase="UserId", nameJava="userId", typeDataBase="varchar")
	private String userId;
	@YsField(nameDataBase="UserName", nameJava="userName", typeDataBase="varchar")
	private String userName;
	@YsField(nameDataBase="UserPassWord", nameJava="userPassWord", typeDataBase="varchar")
	private String userPassWord;
	@YsField(nameDataBase="UserPassWord2", nameJava="userPassWord2", typeDataBase="varchar")
	private String userPassWord2;
	@YsField(nameDataBase="UserLevel", nameJava="userLevel", typeDataBase="int")
	private Integer userLevel;
	@YsField(nameDataBase="UserLeader", nameJava="userLeader", typeDataBase="varchar")
	private String userLeader;
	@YsField(nameDataBase="Organizationid", nameJava="organizationid", typeDataBase="varchar")
	private String organizationid;
	@YsField(nameDataBase="PositionGuid", nameJava="positionGuid", typeDataBase="varchar")
	private String positionGuid;
	@YsField(nameDataBase="BrowserLogin", nameJava="browserLogin", typeDataBase="bit")
	private Integer browserLogin;
	@YsField(nameDataBase="EnWeChatId", nameJava="enWeChatId", typeDataBase="varchar")
	private String enWeChatId;
	@YsField(nameDataBase="CompanyVid", nameJava="companyVid", typeDataBase="varchar")
	private String companyVid;
	@YsField(nameDataBase="OrgId", nameJava="orgId", typeDataBase="bigint")
	private Long orgId;
	@YsField(nameDataBase="DeptId", nameJava="deptId", typeDataBase="varchar")
	private String deptId;
	@YsField(nameDataBase="UserType", nameJava="userType", typeDataBase="varchar")
	private String userType;
	@YsField(nameDataBase="RoleId", nameJava="roleId", typeDataBase="bigint")
	private Long roleId;
	@YsField(nameDataBase="RoleName", nameJava="roleName", typeDataBase="varchar")
	private String roleName;
	@YsField(nameDataBase="UserGrade", nameJava="userGrade", typeDataBase="tinyint")
	private Integer userGrade;
	@YsField(nameDataBase="StateReimburseReward", nameJava="stateReimburseReward", typeDataBase="tinyint")
	private Integer stateReimburseReward;
	@YsField(nameDataBase="SourceType", nameJava="sourceType", typeDataBase="tinyint")
	private Integer sourceType;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TsUserInfo setId(Long id) {
		this.id = id;
		return this;
	}
	public String getGuid() {
		return guid;
	}
	public TsUserInfo setGuid(String guid) {
		this.guid = guid;
		return this;
	}
	public String getUserId() {
		return userId;
	}
	public TsUserInfo setUserId(String userId) {
		this.userId = userId;
		return this;
	}
	public String getUserName() {
		return userName;
	}
	public TsUserInfo setUserName(String userName) {
		this.userName = userName;
		return this;
	}
	public String getUserPassWord() {
		return userPassWord;
	}
	public TsUserInfo setUserPassWord(String userPassWord) {
		this.userPassWord = userPassWord;
		return this;
	}
	public String getUserPassWord2() {
		return userPassWord2;
	}
	public TsUserInfo setUserPassWord2(String userPassWord2) {
		this.userPassWord2 = userPassWord2;
		return this;
	}
	public Integer getUserLevel() {
		return userLevel;
	}
	public TsUserInfo setUserLevel(Integer userLevel) {
		this.userLevel = userLevel;
		return this;
	}
	public String getUserLeader() {
		return userLeader;
	}
	public TsUserInfo setUserLeader(String userLeader) {
		this.userLeader = userLeader;
		return this;
	}
	public String getOrganizationid() {
		return organizationid;
	}
	public TsUserInfo setOrganizationid(String organizationid) {
		this.organizationid = organizationid;
		return this;
	}
	public String getPositionGuid() {
		return positionGuid;
	}
	public TsUserInfo setPositionGuid(String positionGuid) {
		this.positionGuid = positionGuid;
		return this;
	}
	public Integer getBrowserLogin() {
		return browserLogin;
	}
	public TsUserInfo setBrowserLogin(Integer browserLogin) {
		this.browserLogin = browserLogin;
		return this;
	}
	public String getEnWeChatId() {
		return enWeChatId;
	}
	public TsUserInfo setEnWeChatId(String enWeChatId) {
		this.enWeChatId = enWeChatId;
		return this;
	}
	public String getCompanyVid() {
		return companyVid;
	}
	public TsUserInfo setCompanyVid(String companyVid) {
		this.companyVid = companyVid;
		return this;
	}
	public Long getOrgId() {
		return orgId;
	}
	public TsUserInfo setOrgId(Long orgId) {
		this.orgId = orgId;
		return this;
	}
	public String getDeptId() {
		return deptId;
	}
	public TsUserInfo setDeptId(String deptId) {
		this.deptId = deptId;
		return this;
	}
	public String getUserType() {
		return userType;
	}
	public TsUserInfo setUserType(String userType) {
		this.userType = userType;
		return this;
	}
	public Long getRoleId() {
		return roleId;
	}
	public TsUserInfo setRoleId(Long roleId) {
		this.roleId = roleId;
		return this;
	}
	public String getRoleName() {
		return roleName;
	}
	public TsUserInfo setRoleName(String roleName) {
		this.roleName = roleName;
		return this;
	}
	public Integer getUserGrade() {
		return userGrade;
	}
	public TsUserInfo setUserGrade(Integer userGrade) {
		this.userGrade = userGrade;
		return this;
	}
	public Integer getStateReimburseReward() {
		return stateReimburseReward;
	}
	public TsUserInfo setStateReimburseReward(Integer stateReimburseReward) {
		this.stateReimburseReward = stateReimburseReward;
		return this;
	}
	public Integer getSourceType() {
		return sourceType;
	}
	public TsUserInfo setSourceType(Integer sourceType) {
		this.sourceType = sourceType;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TsUserInfo setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TsUserInfo setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TsUserInfo setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TsUserInfo tsUserInfo(
		String guid,
		String userId,
		String userName,
		String userPassWord,
		String userPassWord2,
		Integer userLevel,
		String userLeader,
		String organizationid,
		String positionGuid,
		Integer browserLogin,
		String enWeChatId,
		String companyVid,
		Long orgId,
		String deptId,
		String userType,
		Long roleId,
		String roleName,
		Integer userGrade,
		Integer stateReimburseReward,
		Integer sourceType,
		Integer status
			) {
		TsUserInfo entity = new TsUserInfo();
		entity.setGuid(guid);
		entity.setUserId(userId);
		entity.setUserName(userName);
		entity.setUserPassWord(userPassWord);
		entity.setUserPassWord2(userPassWord2);
		entity.setUserLevel(userLevel);
		entity.setUserLeader(userLeader);
		entity.setOrganizationid(organizationid);
		entity.setPositionGuid(positionGuid);
		entity.setBrowserLogin(browserLogin);
		entity.setEnWeChatId(enWeChatId);
		entity.setCompanyVid(companyVid);
		entity.setOrgId(orgId);
		entity.setDeptId(deptId);
		entity.setUserType(userType);
		entity.setRoleId(roleId);
		entity.setRoleName(roleName);
		entity.setUserGrade(userGrade);
		entity.setStateReimburseReward(stateReimburseReward);
		entity.setSourceType(sourceType);
		entity.setStatus(status);
		return entity;
	}
}